package com.example.cashier.adapter

import android.widget.CheckBox
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.cashier.R
import com.example.cashier.entity.CashierEntityItem
import com.example.cashier.entity.OnItemCheckBoxClickListener

class CashierXiangAdapter2 : BaseQuickAdapter<CashierEntityItem, BaseViewHolder>(R.layout.item_cashier_xiang2) {
    override fun convert(holder: BaseViewHolder, item: CashierEntityItem) {
        holder.setText(R.id.paydetail_type,item.chargeType)
        holder.setText(R.id.paydetail_time,item.paymentTime)
        holder.setText(R.id.paydetail_money,"¥"+item.chargeAmount)
        val checkBox = holder.getView<CheckBox>(R.id.paydetail_cb)
        checkBox.isChecked=item.idChecked
    }
}